<?php
/**
 * Created by PhpStorm.
 * User: Thans
 * Date: 2018/10/19
 * Time: 16:01
 */

namespace app\user\controller\view;


use app\common\controller\Base;

class PublicController extends Base
{
    public function login()
    {
        return $this->fetch();
    }

    public function logout()
    {
        User::logout();
        $this->redirect(url('/admin/login'));
    }
}